using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MMM.Core.Domain;
using ServiceStack.ServiceHost;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;


namespace MMM.Services.Type
{
    [Serializable]
    [Route("/api/shop", "POST,DELETE,PUT")]
    [Route("/api/shopQ", "GET")]    
    public class Shop : EntityBase<Shop>
    {
        /// <summary>
        /// 编号
        /// </summary>
        [StringLength(50)]
        [Required]
        public String Code { get; set; }
        /// <summary>
        /// 店铺名称
        /// </summary>
        [StringLength(50)]
        [Required]
        public String Name { get; set; }
        /// <summary>
        /// 店铺地址
        /// </summary>
        [StringLength(100)]
        [Required]
        public String Adress { get; set; }
        /// <summary>
        /// 店铺电话
        /// </summary>
        [StringLength(50)]
        public String Phone { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(500)]
        public String Remark { get; set; }
        /// <summary>
        /// 负责人
        /// </summary>
        [StringLength(50)]
        [Required]
        public String Fperson { get; set; }
        /// <summary>
        /// 统计分类
        /// </summary>
        [StringLength(50)]
        public String Class { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public int Flag { get; set; }
        /// <summary>
        /// 目标总额
        /// </summary>
        public int SumTarget { get; set; }
    }
}
